#ifndef __FBTEST_H__
#define __FBTEST_H__
#include <linux/fb.h>
#define FB_SUCCESS		0
#define FB_ERROR		1

#define OVERLAY2_YUV444	0x2
#define OVERLAY2_YUV422	0x3
#define OVERLAY2_YUV420	0x4

#define LCD_W	480
#define LCD_H	640

typedef struct _FBControl {
	int fd;
	int mapsize;
	unsigned char *map_data;
	unsigned char *data;

	unsigned int width;
	unsigned int height;
	unsigned int bpp;			// bits per pixel
	unsigned int bpl;			// bytes per line

	struct fb_var_screeninfo vinfo;
	struct fb_fix_screeninfo finfo;
} FBControl;

#endif
